package com.grq.mis.dao;

import com.grq.mis.entity.view.UserPermission;
import com.grq.mis.entity.view.UserPermission;
import org.beetl.sql.mapper.BaseMapper;
import org.beetl.sql.mapper.annotation.Sql;
import org.beetl.sql.mapper.annotation.SqlResource;
import org.springframework.stereotype.Repository;

import java.util.List;

@SqlResource("userPermission")
@Repository
public interface UserPermissionDao extends BaseMapper<UserPermission> {

    @Sql(value = "select code from v_user_permission where user_id = ?")
    List<String> findUserCode(Long id);

}
